import request from '@/utils/request.js'
/**
 * 图片验证码
 * @returns Promise
 */
export const getImgCodeAPI = (num) => {
  return request({
    url: `/api/user-service/user/imageCode/${num}`
  })
}
/**
 *
 * @param {*} data
 * @returns
 */
export const loginAPI = (data) => request({
  url: '/api/user-service/user/login',
  method: 'POST',
  data
})
